package com.acsior.hibernate.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.dac.impl.hibernate.vo.HibernatePersistantIntegerIdVO;

/**
 * WebSystem entity. @author MyEclipse Persistence Tools <b><i>powered by
 * Belev</i></b>
 */
@Entity
@Table(name = "web_systems")
@GeneratorKey(tableName = "web_systems")
public class WebSystemVO extends HibernatePersistantIntegerIdVO {

	private static final long serialVersionUID = -6371806705936698565L;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "contragent_id", nullable = false)
	private ContragentVO contragent;

	@Column(name = "description", length = 250)
	private String description;

	@Column(name = "name", nullable = false, length = 100)
	private String name;

	@Column(name = "url", nullable = false, length = 250)
	private String url;

	/** default constructor */
	public WebSystemVO() {
		super();
	}

	/** @return the contragent */
	public ContragentVO getContragent() {
		return this.contragent;
	}

	/** @return the description */
	public String getDescription() {
		return this.description;
	}

	/** @return the name */
	public String getName() {
		return this.name;
	}

	/** @return the url */
	public String getUrl() {
		return this.url;
	}

	/**
	 * @param contragent
	 *            the contragent to set
	 */
	public void setContragent(ContragentVO contragent) {
		this.contragent = contragent;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @param url
	 *            the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}

}